package demo;

import com.simple.annotation.Action;
import com.simple.annotation.Instance;
import com.simple.core.Carrier;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Instance
public class Observer {

    @Action("demo_action")
    private String observer(Carrier carrier) {
        Object data = carrier.getData(Constant.DEMO_KEY);
        log.info(String.valueOf(data));
        return "完成事件处理";
    }
}
